import request from '@/utils/request'

/**
 * 注册
 *@param {username,password} data
 *
 */

export const register = () => {
  return request({
    url: '/home/swiper',
    method: 'get'
  })
}

export const register1 = () => {
  return request({
    url: '/home/groups',
    method: 'get'
  })
}

export const getCitys = (params) => {
  return request({
    url: '/area/city',
    params
  })
}
// 热门城市
export const getHotCitys = () => {
  return request({
    url: '/area/hot'
  })
}

export const chengshi = () => {
  return request({
    url: '/houses?cityId=AREA%7C88cff55c-aaa4-e2e0&area=AREA%7C88cff55c-aaa4-e2e0&rentType=true&price=null&more=CHAR%7C76eb0532-8099-d1f4%2CFLOOR%7C1%2CAREA%7C88cff55c-aaa4-e2e0%2CORIEN%7C61e99445-e95e-7f37%2Ctrue&roomType=ROOM%7Cd1a00384-5801-d5cd&oriented=ORIEN%7C61e99445-e95e-7f37&characteristic=CHAR%7C76eb0532-8099-d1f4&floor=FLOOR%7C1&start=1&end=20'
  })
}

export const getfind = () => {
  return request({
    url: '/houses/condition?id=AREA%7C88cff55c-aaa4-e2e0'
  })
}
